<?php
namespace app\admin\validate;

use think\Validate;

class User extends Validate
{
    protected $rule = [
        //限制用户名以及输入格式  require 为必填项，max为最大字符 etc.
        'adminName' => 'require|max:25',
        'email' => 'email',
        'captcha' => 'require|captcha',
    ];
    protected $message = [
        'uname.require' => 'username can not null',
        'uname.max' => 'username can not over 25 characters',
        'pw.require' => 'password can not null',
    ];
}
